package com.shaobufan.museum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shaobufan.museum.pojo.entity.Staff;
import com.shaobufan.museum.pojo.vo.StaffVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 17126
 * @description 针对表【staff(员工表)】的数据库操作Service
 * @createDate 2024-03-11 13:39:20
 */
public interface StaffService extends IService<Staff> {

    /**
     * @param staffAccount  员工账户
     * @param staffPassword 员工密码
     * @return 员工
     */
    StaffVo staffLogin(String staffAccount, String staffPassword, HttpServletRequest request);

    /**
     * @param staffAccount  员工账户
     * @param staffPassword 员工密码
     * @return 员工
     */
    Integer staffRegister(String staffAccount, String staffPassword);

    /**
     * 修改员工
     *
     * @param staffId        员工 id
     * @param staffAccount   员工账户
     * @param staffPassword  员工密码
     * @param staffPrivilege 员工级别
     * @return 员工账户
     */
    String staffChange(Integer staffId, String staffAccount, String staffPassword, Integer staffPrivilege);

    /**
     * 查询员工
     *
     * @param staffAccount 员工账号
     * @return 员工 list
     */
    List<StaffVo> staffSearch(String staffAccount);

    /**
     * @param staff 员工实体
     * @return 员工实体Vo
     */
    StaffVo getStaffVo(Staff staff);
}
